<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>ML-HElib: HelibContext Class Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">ML-HElib </a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_helib_context-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HelibContext Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for HelibContext:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_helib_context.png" usemap="#HelibContext_map" alt=""/>
  <map id="HelibContext_map" name="HelibContext_map">
<area href="class_he_context.html" alt="HeContext" shape="rect" coords="0,0,110,24"/>
<area href="class_helib_ckks_context.html" alt="HelibCkksContext" shape="rect" coords="0,112,110,136"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a478494b670227b65125fd3ca13c634cb"><td class="memItemLeft" align="right" valign="top"><a id="a478494b670227b65125fd3ca13c634cb"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getTopChainIndex</b> () const override</td></tr>
<tr class="separator:a478494b670227b65125fd3ca13c634cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a287495307162badd0100878e22a7411c"><td class="memItemLeft" align="right" valign="top"><a id="a287495307162badd0100878e22a7411c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>slotCount</b> () const override</td></tr>
<tr class="separator:a287495307162badd0100878e22a7411c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34cf6d7ebffe61406ed759a80d4e2383"><td class="memItemLeft" align="right" valign="top"><a id="a34cf6d7ebffe61406ed759a80d4e2383"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getSecurityLevel</b> () const override</td></tr>
<tr class="separator:a34cf6d7ebffe61406ed759a80d4e2383"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08c57ce84bee7c24a24dbfbaa50e9aea"><td class="memItemLeft" align="right" valign="top"><a id="a08c57ce84bee7c24a24dbfbaa50e9aea"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasSecretKey</b> () const override</td></tr>
<tr class="separator:a08c57ce84bee7c24a24dbfbaa50e9aea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c9d281ec28ed8f6b0a7e853e5165bf2"><td class="memItemLeft" align="right" valign="top"><a id="a8c9d281ec28ed8f6b0a7e853e5165bf2"></a>
const helib::PubKey &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getPublicKey</b> ()</td></tr>
<tr class="separator:a8c9d281ec28ed8f6b0a7e853e5165bf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf7c0b0be4ac51b968e28716aa32bdf3"><td class="memItemLeft" align="right" valign="top"><a id="adf7c0b0be4ac51b968e28716aa32bdf3"></a>
const helib::SecKey &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getSecretKey</b> ()</td></tr>
<tr class="separator:adf7c0b0be4ac51b968e28716aa32bdf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18dfc9e73c011d5db963a253c5f021ab"><td class="memItemLeft" align="right" valign="top"><a id="a18dfc9e73c011d5db963a253c5f021ab"></a>
const helib::Context &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getContext</b> ()</td></tr>
<tr class="separator:a18dfc9e73c011d5db963a253c5f021ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d9a7b152e208ebad50f1fa19d84decc"><td class="memItemLeft" align="right" valign="top"><a id="a9d9a7b152e208ebad50f1fa19d84decc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>getMirrored</b> ()</td></tr>
<tr class="separator:a9d9a7b152e208ebad50f1fa19d84decc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd30e357cdbca49ba1629be53d135db5"><td class="memItemLeft" align="right" valign="top"><a id="afd30e357cdbca49ba1629be53d135db5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setMirrored</b> (bool v)</td></tr>
<tr class="separator:afd30e357cdbca49ba1629be53d135db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fa0d15a3e372383335d5b9f36623518"><td class="memItemLeft" align="right" valign="top"><a id="a5fa0d15a3e372383335d5b9f36623518"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>automaticallyManagesChainIndices</b> () const override</td></tr>
<tr class="separator:a5fa0d15a3e372383335d5b9f36623518"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a530844e0acda8d025bf139abbd27c0ad"><td class="memItemLeft" align="right" valign="top"><a id="a530844e0acda8d025bf139abbd27c0ad"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>save</b> (std::ostream &amp;out, bool withSecretKey) override</td></tr>
<tr class="separator:a530844e0acda8d025bf139abbd27c0ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af17099c3f14197e522c1c2cc0b5c5421"><td class="memItemLeft" align="right" valign="top"><a id="af17099c3f14197e522c1c2cc0b5c5421"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>load</b> (std::istream &amp;in) override</td></tr>
<tr class="separator:af17099c3f14197e522c1c2cc0b5c5421"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_he_context"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_he_context')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_he_context.html">HeContext</a></td></tr>
<tr class="memitem:a8be1ecd1bfddbde138058c738382e176 inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="a8be1ecd1bfddbde138058c738382e176"></a>
virtual std::shared_ptr&lt; <a class="el" href="class_abstract_ciphertext.html">AbstractCiphertext</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>createAbstractCipher</b> ()=0</td></tr>
<tr class="separator:a8be1ecd1bfddbde138058c738382e176 inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad94f2fb6cafd0526508c76a4951dad24 inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="ad94f2fb6cafd0526508c76a4951dad24"></a>
virtual std::shared_ptr&lt; <a class="el" href="class_abstract_plaintext.html">AbstractPlaintext</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>createAbstractPlain</b> ()=0</td></tr>
<tr class="separator:ad94f2fb6cafd0526508c76a4951dad24 inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18ac04427a92333bcc56542971296d9f inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="a18ac04427a92333bcc56542971296d9f"></a>
virtual std::shared_ptr&lt; <a class="el" href="class_abstract_encoder.html">AbstractEncoder</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>getEncoder</b> ()=0</td></tr>
<tr class="separator:a18ac04427a92333bcc56542971296d9f inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd6c5eb3d8fd36dac7163a09a279fd47 inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="acd6c5eb3d8fd36dac7163a09a279fd47"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>printSignature</b> (std::ostream &amp;out) const =0</td></tr>
<tr class="separator:acd6c5eb3d8fd36dac7163a09a279fd47 inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99d12e640e4babe08da9adccea129619 inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="a99d12e640e4babe08da9adccea129619"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>saveToFile</b> (const std::string &amp;fileName, bool withSecretKey)</td></tr>
<tr class="separator:a99d12e640e4babe08da9adccea129619 inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56c61c1b25e379a2e4749582f38e4ccb inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="a56c61c1b25e379a2e4749582f38e4ccb"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>loadFromFile</b> (const std::string &amp;fileName)</td></tr>
<tr class="separator:a56c61c1b25e379a2e4749582f38e4ccb inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80eb264d1e67a24f7ef20e4ebd5717a1 inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="a80eb264d1e67a24f7ef20e4ebd5717a1"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><b>getDefaultScale</b> () const</td></tr>
<tr class="separator:a80eb264d1e67a24f7ef20e4ebd5717a1 inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae47d91a2823066e1b3f91eb9c63280ec inherit pub_methods_class_he_context"><td class="memItemLeft" align="right" valign="top"><a id="ae47d91a2823066e1b3f91eb9c63280ec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setDefaultScale</b> (double v)</td></tr>
<tr class="separator:ae47d91a2823066e1b3f91eb9c63280ec inherit pub_methods_class_he_context"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a1119ee7ee50d0d934d4c6a46cc4fded6"><td class="memItemLeft" align="right" valign="top"><a id="a1119ee7ee50d0d934d4c6a46cc4fded6"></a>
<a class="el" href="struct_helib_config.html">HelibConfig</a>&#160;</td><td class="memItemRight" valign="bottom"><b>config</b></td></tr>
<tr class="separator:a1119ee7ee50d0d934d4c6a46cc4fded6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67ea7be7a0daa48548ac0f5d0f3bda72"><td class="memItemLeft" align="right" valign="top"><a id="a67ea7be7a0daa48548ac0f5d0f3bda72"></a>
helib::Context *&#160;</td><td class="memItemRight" valign="bottom"><b>context</b> =NULL</td></tr>
<tr class="separator:a67ea7be7a0daa48548ac0f5d0f3bda72"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b55fc3d8481e952f2c864a9474e0ca3"><td class="memItemLeft" align="right" valign="top"><a id="a0b55fc3d8481e952f2c864a9474e0ca3"></a>
helib::SecKey *&#160;</td><td class="memItemRight" valign="bottom"><b>secretKey</b> =NULL</td></tr>
<tr class="separator:a0b55fc3d8481e952f2c864a9474e0ca3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2483b49f848bd04bae160ba4484fa82"><td class="memItemLeft" align="right" valign="top"><a id="ab2483b49f848bd04bae160ba4484fa82"></a>
helib::PubKey *&#160;</td><td class="memItemRight" valign="bottom"><b>publicKey</b> =NULL</td></tr>
<tr class="separator:ab2483b49f848bd04bae160ba4484fa82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed7fb441b6a9a69e4881ad147bcc4043"><td class="memItemLeft" align="right" valign="top"><a id="aed7fb441b6a9a69e4881ad147bcc4043"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nslots</b> =0</td></tr>
<tr class="separator:aed7fb441b6a9a69e4881ad147bcc4043"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a28af31f12fb9f7019bcfdb614a629c"><td class="memItemLeft" align="right" valign="top"><a id="a6a28af31f12fb9f7019bcfdb614a629c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mirrored</b> =false</td></tr>
<tr class="separator:a6a28af31f12fb9f7019bcfdb614a629c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_helib_context_8h_source.html">HelibContext.h</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
